]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceThumbnail: avoid bouncing of the drop placeholder above the first workspace
authorStefano Facchini <stefano.facchini@gmail.com>
Wed, 23 Nov 2011 10:00:30 +0000 (11:00 +0100)
committerOwen W. Taylor <otaylor@fishsoup.net>
Mon, 6 Feb 2012 16:16:28 +0000 (11:16 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=664622

js/ui/workspaceThumbnail.js

index 6b1dc80f9b52db7c2466d6391c04b10f15e4bed6..52b2a747fbffb402f71822b526295aa42ca1d395 100644 (file)
@@ -611,7 +611,11 @@ const ThumbnailsBox = new Lang.Class({
         let thumbHeight = this._porthole.height * this._scale;
 
         let workspace = -1;
-        let firstThumbY = this._thumbnails[0].actor.y;
+        let firstThumbY;
+        if (this._dropPlaceholderPos == 0)
+            firstThumbY = this._dropPlaceholder.y;
+        else
+            firstThumbY = this._thumbnails[0].actor.y;
         for (let i = 0; i < this._thumbnails.length; i ++) {
             let targetBase = firstThumbY + (thumbHeight + spacing) * i;